Skip to content

Add random user agent and update request headers - #14

Open
g1ampy wants to merge 4 commits into
Pawikoski:masterfrom
g1ampy:dev
Open

Add random user agent and update request headers#14
g1ampy wants to merge 4 commits into
Pawikoski:masterfrom
g1ampy:dev

Conversation

@g1ampy

@g1ampy g1ampy commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

Introduced the fake_useragent library to generate random user agents for requests, enhancing browser mimicry. Updated request headers in Vinted class for improved realism and bug fixes and added 'fake_useragent' and 'urllib3' to install requirements in setup.py.

g1ampy added 4 commits July 16, 2025 22:44
Introduced the fake_useragent library to generate random user agents for requests, enhancing browser mimicry. Updated request headers in Vinted class for improved realism and added 'fake_useragent' and 'urllib3' to install requirements in setup.py.
Refactored user agent initialization to use consistent, recent Chrome user agent for better compatibility and detection avoidance. Updated cookie fetching to use a HEAD request with refined headers and endpoint for improved reliability.
Introduces support for custom headers in HTTP requests and adds a Referer header when a URL is provided in the search method. Also randomizes the 'time' parameter in search requests to improve request variability.
Introduced the SHIPPING_DETAILS endpoint and related data models (ShippingDetails, Discount, ShippingResponse) to support fetching shipping information for items. Added the fetch_shipping_details method to the Vinted class for retrieving shipping details, including pickup options, shipping price, and discounts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant